#include <stdio.h>
#define MaxDef(a,b,c) (a>b?a:b)>c?(a>b?a:b):c

float MaxMet(float a,float b,float c){
    float max;
    if(a>b)
        max = a;
    else
        max = b;
    if(max<c)
        max = c;
    return max;
}

int main(int argc, char *argv[]) {

    float a, b, c;
    scanf("%f %f %f", &a, &b, &c);
    printf("%.3f\n",MaxMet(a,b,c));
    printf("%.3f",MaxDef(a,b,c));
    return 0;
}